import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';

const alerts: AppRouteModule = {
  path: '/alerts',
  name: 'Alerts',
  component: LAYOUT,
  redirect: '/alerts/realTimeRain',
  meta: {
    icon: 'ion:settings-outline',
    title: '预警列表',
    orderNo: 11,
  },
  children: [
    {
      path: 'rainWarning',
      name: 'RainWarning',
      meta: {
        title: '降雨预警',
        icon: 'carbon:rain',
      },
      component: () => import('@/views/alerts/rainWarning/index.vue'),
    },
    {
      path: 'realTimeReservoir',
      name: 'RealTimeReservoir',
      meta: {
        title: '水位预警',
        icon: 'solar:water-bold',
      },
      component: () => import('@/views/alerts/realTimeReservoir/index.vue'),
    },
    {
      path: 'realTimeRain',
      name: 'RealTimeRain',
      meta: {
        title: '降雨实况信息',
        icon: 'carbon:rain',
      },
      component: () => import('@/views/alerts/realTimeRain/index.vue'),
    },

    {
      path: 'warningConfig',
      name: 'WarningConfig',
      meta: {
        title: '预警配置',
        icon: 'fluent-mdl2:report-warning',
      },
      component: () => import('@/views/alerts/warningConfig/index.vue'),
    },
    {
      path: 'warningSendRecords',
      name: 'WarningSendRecords',
      meta: {
        title: '预警发送记录',
        icon: 'ep:message-box',
      },
      component: () => import('@/views/alerts/warningSendRecords/index.vue'),
    },
  ],
};

export default alerts;
